import request from '@/utils/request'

export default {
    getSubject(parentId) {
        return request({
            url: '/subject/subjectAll',
            method: 'post',
            params: {
                "parentId": parentId
            }
        })
    },
    deleteSubjectById(id) {
        return request({
            url: `/subject/deleteSubject/${id}`,
            method: 'get',
        })
    },
    updateSubjectById(id, value) {
        return request({
            url: `/subject/updateSubject/${id}/${value}`,
            method: 'post',
        })
    },
    getSubjectList() {
        return request({
            url: '/subject/getSubjectList',
            method: 'get'
        })
    }
}






